import { ValueData } from '../base-data';

/**
 * 字符串类型数据
 */
class StringData extends ValueData<string>{

    protected generate(from: string): string {
        return from;
    }

    protected equal(a: string, b: string): boolean {
        return a === b;
    }

    protected copy(targetContainer: string[], source: string): void {
        targetContainer[0] = source;
    }

}

export { StringData };